#define _CRT_SECURE_NO_WARNINGS
#include "Queue.h"

void test1()
{
	Queue q;
	QueueInit(&q);

	QueuePush(&q, 1);
	QueuePush(&q, 2);
	QueuePush(&q, 3);
	QueuePush(&q, 4);

	QueuePop(&q);
	QueuePop(&q);
	QueuePop(&q);
	QueuePop(&q);
	QueuePop(&q);
}
void test2()
{
	Queue q;
	QueueInit(&q);

	QueuePush(&q, 1);
	QueuePush(&q, 2);
	QueuePush(&q, 3);
	QueuePush(&q, 4);

	printf("Front:%d\n", QueueFront(&q));
	printf("Back:%d\n", QueueBack(&q));

	printf("Size:%d\n", QueueSize(&q));

	QueueDestroy(&q);
}
int main()
{
	//test1();
	test2();
	return 0;
}
